<?php 
require 'config.php';

$iduser = $_SESSION['id'];

$query = "select nombre,apellido,cedula,correo from `hossbd`.`usuarios` WHERE `idusuarios`= $iduser limit 1";
$registros=mysql_query($query) or die(mysql_error());
$data = array();
while ($row = mysql_fetch_array($registros)) {
	$data[] = 'ok';
	$data[] = $row['nombre'];
	$data[] = $row['apellido'];
	$data[] = $row['cedula'];
	$data[] = $row['correo'];
}
echo json_encode($data);
?>